package com.yihaodian.search.query.converter;

import org.apache.lucene.index.Term;
import org.apache.lucene.search.TermQuery;

public class TermQueryConverter {
	
	public static TermQuery convert(com.yihaodian.api.search.query.TermQuery tq) {
		Term term = new Term(tq.getField(), tq.getTerm());
		TermQuery ret = new TermQuery(term);
		return ret;
	}
	
}
